package studentinformationmanagementsystem.entity;

import java.io.Serializable;
import java.sql.Date;
import java.util.Objects;


/**
 * @author 苗庆
 * @version 1.0
 * 教师实体类
 */
public class Teacher implements Serializable {

    //序列化
    private static final long serialVersionUID = 1L;

    //教师id号
    private Integer teacherid;
    //教师姓名
    private String teachername;
    //教师身份证号
    private String idnumber;
    //性别
    private String sex;
    //联系电话
    private String phone;
    //政治面貌
    private String politicsstatus;
    //民族
    private String nation;
    //照片
    private String photograph;
    //邮箱
    private String mailbox;
    //出生日期
    private Date birthdate;
    //籍贯
    private String nativeplace;
    //家庭住址
    private String homeaddress;
    //教龄
    private String teachingage;
    //学历
    private String education;
    //入职时间
    private Date entrytime;
    //个人简介
    private String individualresume;
    //教师工号同时也是教师账号
    private String Teachersworknumber;
    //密码
    private String password;


    //是否已经删除 0未删除 1已经删除
    private Integer IsDelete;

    public Teacher(Integer teacherid, String teachername, String idnumber, String sex, String phone, String politicsstatus, String nation, String photograph, String mailbox, Date birthdate, String nativeplace, String homeaddress, String teachingage, String education, Date entrytime, String individualresume, String teachersworknumber, String password, Integer isDelete) {
        this.teacherid = teacherid;
        this.teachername = teachername;
        this.idnumber = idnumber;
        this.sex = sex;
        this.phone = phone;
        this.politicsstatus = politicsstatus;
        this.nation = nation;
        this.photograph = photograph;
        this.mailbox = mailbox;
        this.birthdate = birthdate;
        this.nativeplace = nativeplace;
        this.homeaddress = homeaddress;
        this.teachingage = teachingage;
        this.education = education;
        this.entrytime = entrytime;
        this.individualresume = individualresume;
        Teachersworknumber = teachersworknumber;
        this.password = password;
        IsDelete = isDelete;
    }


    public Teacher() {

    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Teacher teacher = (Teacher) o;
        return teacherid.equals(teacher.teacherid);
    }

    @Override
    public String toString() {
        return "Teacher{" +
                "teacherid=" + teacherid +
                ", teachername='" + teachername + '\'' +
                ", idnumber='" + idnumber + '\'' +
                ", sex='" + sex + '\'' +
                ", phone='" + phone + '\'' +
                ", politicsstatus='" + politicsstatus + '\'' +
                ", nation='" + nation + '\'' +
                ", photograph='" + photograph + '\'' +
                ", mailbox='" + mailbox + '\'' +
                ", birthdate=" + birthdate +
                ", nativeplace='" + nativeplace + '\'' +
                ", homeaddress='" + homeaddress + '\'' +
                ", teachingage='" + teachingage + '\'' +
                ", education='" + education + '\'' +
                ", entrytime=" + entrytime +
                ", individualresume='" + individualresume + '\'' +
                ", Teachersworknumber='" + Teachersworknumber + '\'' +
                ", password='" + password + '\'' +
                ", IsDelete=" + IsDelete +
                '}';
    }

    @Override
    public int hashCode() {
        return Objects.hash(teacherid);
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getTeacherid() {
        return teacherid;
    }

    public void setTeacherid(Integer teacherid) {
        this.teacherid = teacherid;
    }

    public String getTeachername() {
        return teachername;
    }

    public void setTeachername(String teachername) {
        this.teachername = teachername;
    }

    public String getIdnumber() {
        return idnumber;
    }

    public void setIdnumber(String idnumber) {
        this.idnumber = idnumber;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPoliticsstatus() {
        return politicsstatus;
    }

    public void setPoliticsstatus(String politicsstatus) {
        this.politicsstatus = politicsstatus;
    }

    public String getNation() {
        return nation;
    }

    public void setNation(String nation) {
        this.nation = nation;
    }

    public String getPhotograph() {
        return photograph;
    }

    public void setPhotograph(String photograph) {
        this.photograph = photograph;
    }

    public String getMailbox() {
        return mailbox;
    }

    public void setMailbox(String mailbox) {
        this.mailbox = mailbox;
    }

    public Date getBirthdate() {
        return birthdate;
    }

    public void setBirthdate(Date birthdate) {
        this.birthdate = birthdate;
    }

    public String getNativeplace() {
        return nativeplace;
    }

    public void setNativeplace(String nativeplace) {
        this.nativeplace = nativeplace;
    }

    public String getHomeaddress() {
        return homeaddress;
    }

    public void setHomeaddress(String homeaddress) {
        this.homeaddress = homeaddress;
    }

    public String getTeachingage() {
        return teachingage;
    }

    public void setTeachingage(String teachingage) {
        this.teachingage = teachingage;
    }

    public String getEducation() {
        return education;
    }

    public void setEducation(String education) {
        this.education = education;
    }

    public Date getEntrytime() {
        return entrytime;
    }

    public void setEntrytime(Date entrytime) {
        this.entrytime = entrytime;
    }

    public String getIndividualresume() {
        return individualresume;
    }

    public void setIndividualresume(String individualresume) {
        this.individualresume = individualresume;
    }

    public String getTeachersworknumber() {
        return Teachersworknumber;
    }

    public void setTeachersworknumber(String teachersworknumber) {
        Teachersworknumber = teachersworknumber;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getIsDelete() {
        return IsDelete;
    }

    public void setIsDelete(Integer isDelete) {
        IsDelete = isDelete;
    }
}
